export default {
  spu_name: [
    { required: true, message: '属性不能为空', trigger: 'blur' },
  ],
  unit: [
    { required: true, message: '单位不能为空', trigger: 'blur' },
  ],
  package_num: [
    { required: true, message: '包装数量不能为空', trigger: 'blur' },
    { pattern:/^(\d+\.?)?\d{0,2}$/, message: "请输入整数和小数", trigger: "blur" }
  ],
  sort: [
    { required: false, message: '排序不能为空', trigger: 'blur' },
    { pattern:/^[0-9]*[1-9][0-9]*$/, message: "请输入整数", trigger: "blur" }
  ],
  goods_spu_code: [
    { required: true, message: '编码sku不能为空', trigger: 'blur' },
  ],
  market_price: [
    { required: true, message: '市场价不能为空', trigger: 'blur' },
    { pattern:/^(\d+\.?)?\d{0,2}$/, message: "请输入整数和小数", trigger: "blur" }
  ],
  attrition_rate: [
    { required: true, message: '损耗率不能为空', trigger: 'blur' },
    { pattern:/^(\d+\.?)?\d{0,2}$/, message: "请输入整数和小数", trigger: "blur" }
  ],
  inventory_price: [
    { required: true, message: '库存价不能为空', trigger: 'blur' },
    { pattern:/^(\d+\.?)?\d{0,2}$/, message: "请输入整数和小数", trigger: "blur" }
  ],
  minimum: [
    { required: true, message: '起订量不能为空', trigger: 'blur' },
    { pattern:/^(\d+\.?)?\d{0,2}$/, message: "请输入整数和小数", trigger: "blur" }
  ],
  designated_inventory: [
    { required: true, message: '指定库存不能为空', trigger: 'blur' },
    { pattern:/^(\d+\.?)?\d{0,2}$/, message: "请输入整数和小数", trigger: "blur" }
  ],
}
